package main

import (
	"kubeimooc/global"
	"kubeimooc/initiallize"
)

func main() {
	/*r := gin.Default()
	r.GET("/ping", func(c *gin.Context) {
		c.JSON(http.StatusOK, gin.H{
			"message": "pong",
		})
	})
	r.Run(":8081")*/
	//初始化路由
	r := initiallize.Routers()
	//初始化配置
	initiallize.Viper()
	//初始化测试k8s连接
	initiallize.K8S()
	if err := r.Run(global.CONF.System.Addr); err != nil {
		panic(err)
	}
}
